package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;

public class PlanApproveActivity extends BasePagerActivity {

  private int[] planApprove = { R.string.planPersonal, R.string.planDepartment };

  @Override protected void onCreate(Bundle arg0) {
    super.onCreate(arg0);
    getSupportActionBar().setTitle(R.string.planApprove);
  }

  @Override protected Fragment createFragmentOne() {
    return PlanApproveListFragment.newInstance(PlanApproveListFragment.VALUE_PERSON);
  }

  @Override protected Fragment createFragmentTwo() {
    return PlanApproveListFragment.newInstance(PlanApproveListFragment.VALUE_DEPT);
  }

  @Override protected int[] createTitle() {

    return planApprove;
  }
}
